package exfist;

import java.awt.Point;
import java.awt.image.BufferedImage;
import java.util.Vector;

/**
 * node with multiple children/parents
 * @author brianmaccarthy
 *
 */
public class Control_Node extends Node
{
	Vector<Node> children;
	public Control_Node()
	{
		this("",null,null);
	}
	 
    public  Control_Node(String name,BufferedImage s,Point p)  
    { 
    	node_name = name;
    	sprite = s;
    	pos=p;
    	has_child = false;
    	children = new Vector<Node>();
    	col = new Collisions(pos,sprite,true);
    } 
	
	public void addChild(Node n)
	{
		children.add(n);
	}
	public Node getChild(int i)
	{
		return children.elementAt(i);
	}
}
